package com.info.pan;

import com.info.pan.core.constants.CommonConstant;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@SpringBootApplication(scanBasePackages = CommonConstant.BASE_COMPONENT_SCAN_PATH)
@ServletComponentScan(basePackages = CommonConstant.BASE_COMPONENT_SCAN_PATH)
public class HPanServerLauncher {

    public static void main(String[] args) {
        SpringApplication.run(HPanServerLauncher.class, args);
    }

    @ResponseBody
    @GetMapping("index")
    public String index(){
        return "index";
    }
}
